package com.campus.service;

import com.campus.model.Course;
import com.campus.model.LearnUnit;

import java.util.List;
/**
 * @desc:
 * @author: Tournesol234
 * @date: 2024/11/22 14.41
 */
public interface CourseService {
    int createCourse(Course course);
    Course getCourseById(int courseId);
    List<Course> getAllCourses();

    int createLearnUnit(LearnUnit learnUnit);

        LearnUnit getLearnUnitById(int unitId);

    List<LearnUnit> getLearnUnitsByCourseId(int courseId);
}
